#include "about.h"
#include "ui_about.h"
#include <QCoreApplication>

about::about(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::about)
{
    ui->setupUi(this);
    movie=new QMovie(QCoreApplication::applicationDirPath()+"\\"+"funny.gif");
    ui->label_2->setMovie(movie);
    movie->start();
    this->connect(ui->StartButton,SIGNAL(clicked(bool)),this,SLOT(startMovie()));
    this->connect(ui->StopButton,SIGNAL(clicked(bool)),this,SLOT(stopMovie()));

}

about::~about()
{
    delete ui;
}

void about::startMovie()
{
    this->movie->start();

}
void about::stopMovie()
{
    this->movie->stop();

}
